<?php
header('Content-Type:text/html; charset=utf-8');
session_start();
$_SESSION['user_id'] = null;
$_SESSION['user_name'] = null;
setcookie("uid", "", time() - 3600);
setcookie("uname", "", time() - 3600);
echo "<script>alert('您已退出！');location='index.php';</script>";
?>